package com.huilian.iotbox.client.service.impl;

import com.huilian.iotbox.client.dao.OrderCommissionDao;
import com.huilian.iotbox.client.service.OrderCommissionService;
import com.huilian.iotbox.data.po.OrderCommission;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author lizhiquan
 * @CreateDate: 2021-03-31-11-18
 * @Description:
 */
@Service
public class OrderCommissionServiceImpl implements OrderCommissionService {

    @Resource
    private OrderCommissionDao orderCommissionDao;


    @Override
    public void insert(OrderCommission orderCommission) {
        orderCommissionDao.insert(orderCommission);
    }

    @Override
    public List<OrderCommission> findByOrderId(Long orderId) {
        return orderCommissionDao.findByOrderId(orderId);
    }


    @Override
    public void deleteByOrderId(Long orderId) {
        orderCommissionDao.deleteByOrderId(orderId);
    }
}
